package com.gopay.scheduler.dao;

import com.gopay.common.base.dao.BaseReadDAO;
import com.gopay.common.domain.cps.CpsGenMainOrder;

import java.util.List;

/**
 * 主订单只读持久层
 * @author dong-wang5@hnair.com
 * @date 2018-01-09 10:34:14
 */
public interface CpsGenMainOrderReadDao extends BaseReadDAO<CpsGenMainOrder, String> {

    /**
     * 查找订单根据订单创建时间，订单处理码  
     * @return
     */
    List<CpsGenMainOrder> findTimeoutOrdersByCreateTimeAndProcessCode(String procCode);
    
    /**
     * 根据交易状态查询主订单数据
     * @param txnStaCode
     * @return
     */
	List<CpsGenMainOrder> findTimeoutBounsOrdersByCreateTime(String txnStaCode);
	
	/**
	 * 查询天溢赢超时订单
	 * @param txnStaCd
	 * @return
	 */
	List<CpsGenMainOrder> findTimeoutTyyOrdersByCreateTimeAndProcessCode(String txnStaCd);
	/**
	 * 查询天溢赢银行回应超时订单
	 * @param txnStaCodeList
	 * @return
	 */
	List<CpsGenMainOrder> findBankTimeoutTyyOrdersByCreateTimeAndProcessCode(List<Integer> txnStaCodeList);

}
